﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace DispatchAssist.Model
{
    /// <summary>
    /// SeatLogin
    /// </summary>
    public class QueryLoginAndSystemLog
    {

        /// <summary>
        /// SeatLogin 构造函数
        /// </summary>
        public QueryLoginAndSystemLog()
        { }


        /// <summary>
        /// SeatLogin OR映射构造函数
        /// </summary>
        public QueryLoginAndSystemLog(System.Data.IDataReader dr)
        {
            this.ID = (Guid)dr["ID"];
            this.UserID = (Guid)dr["UserID"];

            this.LogRecordTime = Convert.ToDateTime(dr["LogRecordTime"]);

            this.UserName = Convert.ToString(dr["UserName"]);

            this.EventContent = Convert.ToString(dr["EventContent"]);
            //this.TypeStr = Convert.ToString(dr["TypeStr"]);
            this.SeatStr = Convert.ToString(dr["SeatStr"]);
        }


        /// <summary>
        /// 
        /// </summary>
        public Guid ID { get; set; }


        /// <summary>
        /// 用户ID
        /// </summary>
        public Guid UserID { get; set; }

        public string UserName { get; set; }

        /// <summary>
        /// 时间
        /// </summary>
        public DateTime LogRecordTime { get; set; }


        public string EventContent { get; set; }

        public string SeatStr { get; set; }



        //public override string ToString()
        //{
        //    return string.Format("[SeatID：{0},UserID:{1}]", this.SeatID, this.UserID);
        //}

    }
}
